/*
* author : douyu
* date : 2024/1/11 10:30
* description : system_platform_tool
*/

import 'dart:io';
import 'package:flutter/services.dart';

class SystemPlatformChannel {

  static const MethodChannel _channel = MethodChannel("com.flutter.methodChannel");

  static Future<bool> checkTVDevice() async {
    if(Platform.isAndroid){
      final bool tvDevice = await _channel.invokeMethod("com.flutter.checkDevice");
      return tvDevice;
    }

    return false;
  }
}